package com.oascarmovie.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.oascarmovie.R;

public class MovieResultWidget extends RelativeLayout {

	public MovieResultWidget(Context context) {
		super(context);
		
		LayoutInflater.from(context).inflate(R.layout.movieresultwidget, this);
		
		/*android.widget.RelativeLayout.LayoutParams params = new android.widget.RelativeLayout.LayoutParams(150, 200); 
		params.leftMargin = 10;
		params.rightMargin = 10;
		params.topMargin = 10;
		params.bottomMargin = 10;
		
		this.setGravity(Gravity.CENTER_HORIZONTAL);
		this.setLayoutParams(params);*/
		
		/*ImageView imageView = new ImageView(context);
		android.widget.LinearLayout.LayoutParams layoutParams = new android.widget.LinearLayout.LayoutParams(100, LayoutParams.WRAP_CONTENT);
		layoutParams.setMargins(5, 5, 5, 5);
		layoutParams.gravity = Gravity.CENTER;
		
		imageView.setLayoutParams(layoutParams);
		imageView.setImageResource(R.drawable.a_123);
		
		this.addView(imageView);*/
	}
	
}
